package com.ruoyi.printer.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 店铺管理对象 printer_shop
 * 
 * @author yanyi
 * @date 2023-07-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PrinterShop implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 店铺id */
    @TableId(type = IdType.ASSIGN_ID)
    private String shopId;

    /** 店铺名称 */
    @Excel(name = "店铺名称")
    private String shopName;

    /** 店铺地址 */
    @Excel(name = "店铺地址")
    private String shopAddress;

    /** 店铺联系方式 */
    @Excel(name = "店铺联系方式")
    private String shopPhone;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 店铺备注 */
    @Excel(name = "店铺备注")
    private String shopRemark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
